<div id="galerie_corp">
<div id="galerie_overlay">
    <img alt="" src="../../templates/default/images/corner-galerie.png" width="25" height="25" />
</div>
<div id="galerie_child_corp">
                                
<div id="galerie_corp">
    <div class="gallery_root_var">
    <?php
                echo '<div class="gallery_root_var">';
                echo '<div class="gallery_picture_holder_var">';
                //<!-- imaginile mari -->
                echo '<div id="pozaMare" style="overflow:hidden; height:285px; width:620px;float:left;">';

                $j=0;
                $images = mysql_query("select * from dt_top_images where t_id = '".$_GET['id']."'");
                while ($iRow = mysql_fetch_array($images)){
                    $link = mysql_query("select * from dt_header where id = '".$qrow['h_id']."'");
                    $linkrow = mysql_fetch_array($link);

                    echo '<div id="poza'.$j.'">';
                    echo '<a class="lightbox" style="z-index:2; position: absolute; width: 620px; height: 285px;overflow:hidden" href="../../uploads/top_img/'.$iRow['image_file'].'">';
                    echo '<img src="../../uploads/top_img/thumbs/thumb_620-'.$iRow['image_file'].'" width="620">';
                    echo '</a>';
                    echo '</div>';
                    $j++;
                }
                echo '</div>';
                //<!-- end imaginile mari -->
                echo '</div>';
                echo '<div class="gallery_picture_text_var">';
                //<!-- text imagini -->
                $images = mysql_query("select * from dt_top_main where id = '".$_GET['id']."'");
                $iRowT = mysql_fetch_array($images);

                echo $iRowT['title'];
                //<!-- end text imagini -->
                echo '</div>';
                echo '<div class="gallery_slider_holder_var">';
                //<!-- thumbs slider -->
                echo '<div id="thumb" style="float:right;">';
                echo '<ul id="scroller">';

                $j=0;
                $images = mysql_query("select * from dt_top_images where t_id = '".$_GET['id']."'");
                while ($iRow = mysql_fetch_array($images)){
                    $b = explode("_", $iRow['file']);
                    echo '<li id="clickPoza'.$j.'"><div class="thumbsize" style="background:url(../../uploads/top_img/thumbs/thumb_60-'.$iRow['image_file'].');"><img src="../../templates/default/images/chenar-alb-60x60.png" width="60" height="60"></div></li>';
                    $j++;
                }
                echo '</ul>';
                echo '</div>';
                //<!-- end thumbs slider -->
                echo '</div>';
                echo '</div>';
    ?>
    </div></div></div></div>